using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Interfaces;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.Hr
{
    /// <summary>
    /// 合同文件表（多文件）
    /// </summary>
    [MiddleTable]
    public class SysPersonContractFile : BasePoco, IFileBase
    {

        [Display(Name = "合同ID", Description = "关联的合同ID", GroupName = "合同信息")]
        public Guid? PersonContractId { get; set; }

        [Display(Name = "合同", Description = "关联的合同对象", GroupName = "合同信息")]
        public SysPersonContract PersonContract { get; set; }

        //ISubFile定义的字段
        [Display(Name = "文件ID", Description = "文件唯一标识", GroupName = "文件信息")]
        public Guid? FileId { get; set; }

        [Display(Name = "文件", Description = "文件对象", GroupName = "文件信息")]
        public FileAttachment File { get; set; }

        [Display(Name = "排序", Description = "图片顺序", GroupName = "文件信息")]
        public int Order { get; set; }
    }
}